package com.gzx.risk.core.apis.result.huarong;

import com.gzx.risk.core.apis.result.RiskResult;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Map;

@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class HuarongC9004 extends RiskResult {
    private String code;
    private String message;
    private Map<String, Object> data;
    private String signature;
    /**
     * 检查接口调用是否成功
     * @return 是否成功
     */
    public boolean isSuccess() {
        return "0000".equals(code);
    }
}
